﻿<%--
 *  File:    PriceListSummary.jsp
 *  @Author: Peter Shen
 *  Date:    Wednesday, October 16, 2002

 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>
 

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page import="com.oval.util.*" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="http://dcms.oval.com/page/dcms" prefix="dcms" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  Category cat = Category.getInstance("jsp.PriceListSummary2");
  String privilegeCode = "10Z05,10Z06,10Z07";
  String strModuleName = "ZYL";
  String strTableName = "ovpricelistsummary";
%>

<%@include file="/inc/PageDefault.inc"%>


<%@include file="/inc/FrmDefault.inc"%>
<%@include file="/inc/LocationDefault.inc"%>
<html>
<head>
<title>MasterdataRelationshipBatchModify</title>
<link rel="stylesheet" href="<%=request.getContextPath()%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%= strLanguageCode %>/summary.css" />
<script language="JavaScript" src="<%=request.getContextPath()%>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=request.getContextPath()%>/js/Calendar.js"></script>
<script>
  function page_batchsave()
  {
    var frm=document.getElementById("__fullEditFrm");
    frm.pagename.value="p_masterdatarelationshipbatchmodify";
    frm.actionname.value="batchsave";
    return true;
  }
  function page_userselect(sid)
  {
    document.getElementById("__temp_1__").value=sid;
    var obj=document.getElementById(sid);
   
  	var strstatus = "height=400, width=600,top=100,left=100,toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no";
		var strurl = "<%=request.getContextPath()%>/img/UserSelectPop.jsp?o_thread=" + Math.random();
			if(popwindow!=null)
        popwindow.close();
    popwindow = window.open(strurl,"newwindows" ,strstatus);

  }
  function page_setUser(id,code,name){
    
     var sid=document.getElementById("__temp_1__").value;
    var obj=document.getElementById(sid);
    document.getElementById(obj.refid).value=id;
 obj.value=code;
 document.getElementById(obj.refnameid).value=name;
  
    if (popwindow != null)
      popwindow.close();
	
}
function page_areaselect(sid){
  document.getElementById("__temp_2__").value=sid;
    var obj=document.getElementById(sid);
   
    url = '<%=request.getContextPath()%>/masterdata/upm/UserAreaAllWindow.jsp?<%= OvalTools.randomURL() %>';
    attribute = 'height=500, width=250,top=100,left=100,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no';
	if(popwindow!=null)
        popwindow.close();
	popwindow = window.open(url,'newwindow', attribute);
}

function setBusinessarea(id,areaname){
   var sid=document.getElementById("__temp_2__").value;
    var obj=document.getElementById(sid);
    document.getElementById(obj.refid).value=id;
 obj.value=areaname;
 
    if (popwindow != null)
      popwindow.close();
	
}
</script>  
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
 
<dcms:summary id="batchmodify.masterdatarelationship" needExportCSV="true" needExportLabelDetail="true" hiddenDetailHeader="true" needBatchModify="true" preBatchSaveFunction="page_batchsave">
<dcms:param name="globalpccode" property="params:globalpccode"/>
</dcms:summary>

</body>
</html>